package cn.tuning.service.impl;

import cn.tuning.dao.TestDao;
import cn.tuning.entity.RiderInfo;
import cn.tuning.entity.UserInfo;
import cn.tuning.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lixiaolong
 * @date 2021-08-02 23:42
 * @description
 */

@Service
public class TestServiceImpl implements TestService {

    @Autowired
    private TestDao testDao;

    @Override
    public List<RiderInfo> queryAll() {
        return this.testDao.queryAll();
    }

    @Override
    public void login(UserInfo user_info) {
        /*if (!Objects.isNull(user_info)){
            User_info userInfoInSql = testDao.queryUserByUid(user_info.getUid());
            if (user_info.getPassword().equals(userInfoInSql.getPassword())){

            }else {
                //密码比对不成功 返回错误的提示信息
            }
        }else {
            //密码比对不成功 返回错误的提示信息
        }*/
    }
}
